package lesson;
import java.util.Scanner;
public class lesson071 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入第一个整数");
        int a  = sc.nextInt();
        System.out.println("请输入第二个整数");
        int b  = sc.nextInt();
        System.out.println("请输入第三个整数");
        int c  = sc.nextInt();
        int max = getMax(a,b,c);
        int min = getMin(a,b,c);
        int mid = (a+b+c)-max-min;
        System.out.println(min + " "  + mid + " " + max);
    }
    public static int getMax(int a,int b,int c){
        int temp = a >b ? a : b;
        int max = temp > c ? temp : c;
        return max;
    }

    public static int getMin(int a,int b,int c){
        int temp = a < b? a : b;
        int min = temp < c ? temp : c;
        return min;
    }
}
